var express = require('express');
var path = require('path');
var router = express.Router();

var app = express();
app.set('port', 9000);
// app.engine('.html', ejs.__express);
app.set('views', __dirname + '/views');
app.set('view engine', 'html');

app.use(express.static(path.join(__dirname, '../client/')));

router.get("/", function(req, res, next){
    res.redirect("index.html");
});
app.listen(app.get("port"), function() {
  console.log('Express server listening on port ' + app.get('port'));
});
module.exports = app;
